// 基于template/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{spinalCase ctrl.codeName}}-grid-vo.ts.hbs生成
import { ControlVOBase } from '@/core';

export class GridDataControlVO extends ControlVOBase {

    constructor(data: any){
        super(data);
        const wfKey = ['srftaskid','srftaskdefinitionkey','srfprocessdefinitionkey','srfprocessdefinitionid','srfprocessinstanceid'];
        //  表格自持属性
        this.$ownKeys = ['ibizbook', 'ibizbookname', 'borrowstatus', 'booknumber', 'author', 'type', 'ibizbookid', 'srfkey', 'srfdataaccaction', 'srfmajortext', 'srfmstag', ...wfKey];
    }

    get ibizbookname() {
        return this.$DO.ibizbookname;
    }

    set ibizbookname(value: any) {
        this.$DO.ibizbookname = value;
    }
    get borrowstatus() {
        return this.$DO.borrowstatus;
    }

    set borrowstatus(value: any) {
        this.$DO.borrowstatus = value;
    }
    get booknumber() {
        return this.$DO.booknumber;
    }

    set booknumber(value: any) {
        this.$DO.booknumber = value;
    }
    get author() {
        return this.$DO.author;
    }

    set author(value: any) {
        this.$DO.author = value;
    }
    get type() {
        return this.$DO.type;
    }

    set type(value: any) {
        this.$DO.type = value;
    }
    get ibizbookid() {
        return this.$DO.ibizbookid;
    }

    set ibizbookid(value: any) {
        this.$DO.ibizbookid = value;
    }
    get srfkey() {
        return this.$DO.ibizbookid;
    }

    set srfkey(value: any) {
        this.$DO.ibizbookid = value;
    }
    get srfdataaccaction() {
        return this.$DO.ibizbookid;
    }

    set srfdataaccaction(value: any) {
        this.$DO.ibizbookid = value;
    }
    get srfmajortext() {
        return this.$DO.ibizbookname;
    }

    set srfmajortext(value: any) {
        this.$DO.ibizbookname = value;
    }

    set ibizbook(value: any) {
        this.$DO.ibizbookid = value;
    }
    get ibizbook() {
        return this.$DO.ibizbookid;
    }

    get srftaskid(){
        return this.$DO.srftaskid;
    }

    get srftaskdefinitionkey(){
        return this.$DO.srftaskdefinitionkey;
    }

    get srfprocessdefinitionkey(){
        return this.$DO.srfprocessdefinitionkey;
    }

    get srfprocessdefinitionid(){
        return this.$DO.srfprocessdefinitionid;
    }

    get srfprocessinstanceid(){
        return this.$DO.srfprocessinstanceid;
    }
}

export const GridControlVO = [{ name: 'GridControlVO', controlVO: GridDataControlVO }]